package lab02.test35;

public class Salesman extends Employee{

    double salary;
    double rate;

    public Salesman(){
        this.salary = salary;
        this.rate = rate;
    }

    @Override
    public double computeSalary() {
        return salary+salary*rate;
    }

    @Override
    public String toString() {
        return "ID："+ID+"姓名："+name+"性别："+
                sex+"薪水："+(salary+salary*rate);
    }
}
